home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / protect_the_fire.swf / scripts / DefineSprite_269 / frame_1 / DoAction.as
Text File  |  2007-01-15  |  364b  |  20 lines

  1. _rotation = random("60");
  2. xval = eval("/:base") + random("5") * "0.01";
  3. yval = eval("/:base") + random("5") * "0.01";
  4. trace(yval);
  5. if(random("2"))
  6. {
  7.    yval *= "-1";
  8. }
  9. if(random("2"))
  10. {
  11.    xval *= "-1";
  12. }
  13. tellTarget("fire")
  14. {
  15.    gotoAndPlay(random("8") + "1");
  16. }
  17. setProperty("fire", _rotation, random("20") - "10");
  18. destroyed = "0";
  19. team = "1";
  20.